package com.ruoyi.store.mapper;

import java.util.List;
import com.ruoyi.store.domain.StoOrders;
import org.apache.ibatis.annotations.Mapper;

/**
 * 订单Mapper接口
 * 
 * @author ruoyi
 * @date 2024-10-08
 */

@Mapper
public interface StoOrdersMapper 
{
    /**
     * 查询订单
     * 
     * @param id 订单主键
     * @return 订单
     */
    public StoOrders selectStoOrdersById(Long id);

    /**
     * 查询订单列表
     * 
     * @param stoOrders 订单
     * @return 订单集合
     */
    public List<StoOrders> selectStoOrdersList(StoOrders stoOrders);

    /**
     * 新增订单
     * 
     * @param stoOrders 订单
     * @return 结果
     */
    public int insertStoOrders(StoOrders stoOrders);

    /**
     * 修改订单
     * 
     * @param stoOrders 订单
     * @return 结果
     */
    public int updateStoOrders(StoOrders stoOrders);

    /**
     * 删除订单
     * 
     * @param id 订单主键
     * @return 结果
     */
    public int deleteStoOrdersById(Long id);

    /**
     * 批量删除订单
     * 
     * @param ids 需要删除的数据主键集合
     * @return 结果
     */
    public int deleteStoOrdersByIds(Long[] ids);
}
